package com.tshopping.service;

import com.tshopping.bean.Store;
import com.tshopping.util.ResponseData;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface StoreService {
    ResponseData addStore(int user, String address, String name, String description, String picture);

    ResponseData updateStore(String address, String name, String description, String picture, int isApprove,int user, int id);

    ResponseData deleteStore( int id);

    ResponseData selectStore(int user);

    ResponseData selectStoreById(int id);

    ResponseData uploadStoreCoverFile(HttpServletRequest request, String email, MultipartFile file);

    ResponseData selectStoreInformation(int store,int user,int currentPage);

    ResponseData getAllStore(int currentPage);

    ResponseData approveStore(int isApprove,int id);
}
